package com.cjt.chat.pojo;

/**
 * @author cjt
 * @since 2024/3/29
 */
public class Group {
    //群组ID
    private Integer groupId;
    //群名称
    private String groupName;
    //群主ID
    private Integer creatorId;
    //群公告
    private String notice;
    //权限
    private Integer role;
    //群头像
    private String groupHead;
    //群人数
    private Integer groupNumber;
    //查询的用户是否已经在该群中
    private Boolean inGroup;
    //创建时间
    private Long createTime;

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getGroupHead() {
        return groupHead;
    }

    public void setGroupHead(String groupHead) {
        this.groupHead = groupHead;
    }

    public Integer getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Integer groupNumber) {
        this.groupNumber = groupNumber;
    }

    public Boolean getInGroup() {
        return inGroup;
    }

    public void setInGroup(Boolean inGroup) {
        this.inGroup = inGroup;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Group{" +
                "groupId=" + groupId +
                ", groupName='" + groupName + '\'' +
                ", creatorId=" + creatorId +
                ", notice='" + notice + '\'' +
                ", role=" + role +
                ", groupHead='" + groupHead + '\'' +
                '}';
    }
}
